package com.blobfish.fiction.book.constant;

import com.blobfish.fiction.common.base.knowledge.IMessageEnum;

/**
 * 异常信息
 * @author huangbo
 */
public enum BookMessageEnum implements IMessageEnum {
    BOOK_NAME_NOT_BLANK("E_BOOK_BOOK_NAME_NOT_BLANK", "小说名称不能为空!"),
    BOOK_NO_NOT_BLANK("E_BOOK_NO_NOT_BLANK", "小说编号不能为空"),
    BOOK_NOT_EXISTS("E_BOOK_NOT_EXISTS", "本地数据库无法找到对应小说"),
    BOOK_HAS_DOWNLOADED("E_BOOK_HAS_DOWNLOADED", "该小说已在任务列表中，请勿重复下载!"),
    BOOK_STATE_NOT_BLANK("E_BOOK_STATE_NOT_BLANK", "小说状态不能为空");
    BookMessageEnum(String id, String message) {
        this.id = id;
        this.message = message;
    }

    private final String id;
    private final String message;
    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
